projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c825c72
)
(c-beginning-of-defun): With -ve arg and point too close to EOB, leave
author
Alan Mackenzie
<acm@muc.de>
Tue, 17 Apr 2007 20:48:43 +0000
(20:48 +0000)
committer
Alan Mackenzie
<acm@muc.de>
Tue, 17 Apr 2007 20:48:43 +0000
(20:48 +0000)
point at EOB rather than last `}'.
lisp/progmodes/cc-cmds.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/cc-cmds.el
b/lisp/progmodes/cc-cmds.el
index 79043c87b630009319fd760ba377b0f9a53bf7d4..2bda3a174cfd7cb087bbce4ba78812c84ee689b7 100644
(file)
--- a/
lisp/progmodes/cc-cmds.el
+++ b/
lisp/progmodes/cc-cmds.el
@@
-1531,7
+1531,7
@@
defun."
(setq arg (c-forward-to-nth-EOF-} (- arg) where)))
;; Move forward to the next opening brace....
(when (and (= arg 0)
- (c-syntactic-re-search-forward "{" nil
t
))
+ (c-syntactic-re-search-forward "{" nil
'eob
))
(backward-char)
;; ... and backward to the function header.
(c-beginning-of-decl-1)